package com.ruoyi.business.approvalflow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.approvalflow.domain.TRegisterApprovalFlow;
import com.ruoyi.business.approvalflow.vo.TRegisterApprovalFlowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 退款审批流程Mapper接口
 *
 * @author Tellsea
 * @date 2025-06-22
 */
public interface TRegisterApprovalFlowMapper extends BaseMapper<TRegisterApprovalFlow> {

    Page<TRegisterApprovalFlowVo> queryList(Page<?> page, @Param("entity") TRegisterApprovalFlowVo entity);

    List<TRegisterApprovalFlowVo> queryList(@Param("entity") TRegisterApprovalFlowVo entity);

    TRegisterApprovalFlowVo queryById(@Param("id") String approvalId);

    List<TRegisterApprovalFlowVo> getNoApproveListByUser(@Param("processId") String processId, @Param("businessIdList") List<String> businessIdList, @Param("userId") Long userId);

    List<TRegisterApprovalFlowVo> getNoApproveList(@Param("processId") String processId, @Param("businessIdList") List<String> businessIdList);

}
